#include <logf.h>
#include <kernel.h>

void panic (const char *file, int line, const char *func, const char *cond) {
    logf("assert failed! %s", cond);
    logf("file: %s\nline %d\nfunc: %s\n", file, line, func);

    for (;;) {
        hlt();
    }
}